package com.atguigu.lease.module.entity;

import com.atguigu.lease.module.enums.ItemType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableName(value = "graph_info")
@Schema(description = "图片信息")
public class GraphInfo extends BaseEntity{

    @Schema(description = "图片名称")
    private String name;

    @Schema(description = "图片所属对象类型")
    @TableField(value = "item_type")
    private ItemType itemType;

    @Schema(description = "图片所属对象id")
    @TableField(value = "item_id")
    private Long ItemId;

    @Schema(description = "图片地址")
    private String url;


}
